home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _987019C1E92C4EC9ABCF9C6DA33E70F7 < prev    next >
Encoding:
Text File  |  2004-01-06  |  1.4 KB  |  55 lines

  1. ; Shaders Script file
  2. ; Copyright (c) 2001-2003 Crytek Studios. All Rights Reserved.
  3. ; Author: Honich Andrey
  4.  
  5. Version (1.00)
  6.  
  7. //========================================================================
  8. // ATI R2xx / NVidia NV2X (PS.1.X and above)
  9.  
  10. // Diffuse bump-mapping with ambient in alpha-channel of diffuse texture
  11. // One pass for single light source (one pass for each additional LS)
  12.  
  13. // Supports:
  14. // 1. Dot3 light maps
  15. // 2. Simple light maps
  16. // 3. Three types of shadow maps (2D, Depth-maps and mixed Depth/2D)
  17. // 4. Stencil shadows
  18. // 5. Three types of light sources (Directional, Point/Omni, Projected)
  19. // 6. Optimised separate techniques for Single/Multiple light sources
  20. // 7. Optimised separate techniques for PS.2.0 shaders support (to reduce number of passes)
  21. // 8. Env. real-time radiosity
  22.  
  23. Shader 'TemplBumpDiffuse_AlphaGlow_'
  24. (
  25.    Params
  26.   {
  27.     Sort = Opaque
  28.   }
  29.   
  30.   #include "BumpDiffuse_AGlow.csi"
  31. )
  32.  
  33. Shader 'TemplBumpDiffuse_AlphaGlow'
  34. (
  35.    Params
  36.   {
  37.     Sort = Opaque
  38.   }
  39.   
  40.   #define %DIFFUSE 0x1
  41.   #define %DIFFUSE_NCM 0x4
  42.   #define %ALPHAGLOW 0x2000
  43.   #define %BUMP_MAP 0x1000
  44.   
  45.   #include "IllumTemplate.csi"
  46.   
  47.   #undefine %BUMP_MAP
  48.   #undefine %ALPHAGLOW
  49.   #undefine %DIFFUSE_NCM
  50.   #undefine %DIFFUSE
  51. )
  52.  
  53. //=========================================================================================
  54.  
  55.